package priv.mill.serviece;

import java.util.List;
import java.util.Map;

import priv.mill.factory.annotation.Component;
import priv.mill.net.MyHttp;
import priv.mill.net.UrlType;
import priv.mill.util.JDBCUtil;

@Component
public class MempServiece implements IMyService{

	
	public MyHttp handlerMessage(MyHttp m) {
		List<Map<String, Object>> findAll = JDBCUtil.findAll("select * from memp");
		MyHttp myHttp = new MyHttp();
		myHttp.setType(UrlType.NALMORE);
		myHttp.setData(findAll);
		return myHttp;
	}

}
